package com.losdun.points.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.losdun.points.domain.PointsRecord;

import java.util.List;

/**
 * @author sword.ye
 * @date 2025/4/13
 **/

public interface PointsRecordService extends IService<PointsRecord> {


    List<PointsRecord> queryPointsRecordList(PointsRecord pointsRecord);

    /**
     *
     * @param userId
     * @param pointsType 1增加 2减少
     * @param sourceType 1管理端操作 2取消订单
     * @param points 操作的分数
     * @param remark 备注
     */
    void updateUserPointsRecord(Long userId,  Integer sourceType,Integer pointsType, Integer points, String remark);

}
